package com.maxmlr.music.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author max
 * @version 1.0
 * @ClassName UserSingerCollection
 * @Description 用户歌手收藏记录表
 * @Copyright Copyright (c) 2020: www.maxmlr.com.
 * @since 2020-06-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_singer_collection")
@ApiModel(value="UserSingerCollection对象", description="用户歌手收藏记录表")
public class UserSingerCollection extends Model<UserSingerCollection> {

    private static final long serialVersionUID=1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    /**
     * 歌手id
     */
    @ApiModelProperty(value = "歌手id")
    @TableField("singer_id")
    private Integer singerId;

    /**
     * 状态，1已收藏，0取消收藏
     */
    @ApiModelProperty(value = "状态，1已收藏，0取消收藏")
    @TableField("status")
    private Integer status;

    /**
     * 收藏时间
     */
    @ApiModelProperty(value = "收藏时间")
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
